<%-- 
    Document   : menutopcontent
    Created on : Oct 7, 2011, 9:49:54 AM
    Author     : Administrator
--%>

<%@page import="hibernate.pojo.Admin"%>
<%@page import="org.hibernate.HibernateException"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div id="top-menu">
<%
    try
    {
        Admin admin = (Admin)session.getAttribute("ThongTinAdmin");
        if(admin!=null) 
        {
%>
            <a href="#" title="My account">My account</a> |
            <a href="#" title="Settings">Settings</a> |
            <a href="#" title="Contact us">Contact us</a>
            <span>Logged in as <a href="#" title="Logged in as admin"><%=admin.getTaiKhoan()%></a></span>
            | <a href="#" title="Edit profile">Edit profile</a>
            | <a href="adminlogincontroller?action=logout" title="Logout">Logout</a>
<%
        }
        else
        {
%>
            <a href="#" title="My account">My account</a> |
            <a href="#" title="Settings">Settings</a> |
            <a href="#" title="Contact us">Contact us</a>
            <span>Logged in as <a href="#" title="Logged in as admin">admin</a></span>
            | <a href="#" title="Edit profile">Edit profile</a>
            | <a href="#" title="Logout">Logout</a>
<%
        }
    }
    catch(HibernateException ex)
    {
        out.println(ex);
    }
%>   
</div>